package com.example.headfirstprojectdemo.kungFuStrategyPattern.figure;

import com.example.headfirstprojectdemo.kungFuStrategyPattern.Character;
import com.example.headfirstprojectdemo.kungFuStrategyPattern.WeaponBehavior;

/**
 * @author usegoods@usegoods.com
 * @createTime 2020/12/1 15:35
 * @description 女王角色
 */
public class Queen extends Character {
    WeaponBehavior weaponBehavior;

    public void setWeaponBehavior(WeaponBehavior weaponBehavior) {
        this.weaponBehavior = weaponBehavior;
    }

    @Override
    public void fight() {
        this.weaponBehavior.userWeapon();
        System.out.println("开始打架");
    }
}
